package com.joysuch.wwyt.bp.bean.inspect;

import com.joysuch.wwyt.bp.entity.inspect.BpAppPlanTask;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;
import java.time.LocalTime;

/**
 * @Author ZhangDong
 * @Date 2020/8/17 12:04
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class BpInspectTaskQueryDto {

    private Long id;
    @ApiModelProperty("计划表主键id")
    private Long planId;
    @ApiModelProperty("计划名称")
    private String planName;
    @ApiModelProperty("巡检人员id")
    private Long checkUserId;
    @ApiModelProperty("巡检人员姓名")
    private String checkUserName;
    @ApiModelProperty("检查日期")
    private LocalDate checkDate;
    @ApiModelProperty("检查时间")
    private LocalTime checkTime;
    @ApiModelProperty("任务状态: 待完成 未完成 已完成")
    private String status;
    @ApiModelProperty("记录id")
    private Long recordId;

    public BpInspectTaskQueryDto(BpAppPlanTask task){
        this.id=task.getId();
        this.planId=task.getPlanId();
        this.checkUserId=task.getCheckUserId();
        this.checkUserName=task.getCheckUserName();
        this.checkDate=task.getCheckDate();
        this.checkTime=task.getCheckTime();
        this.status=task.getStatus();
        this.recordId=task.getRecordId();
    }
}
